<template>
  <div id="contextmenu" class="menu">
    <div class="contextmenu__item" @click="handleToSee">查看原文</div>
  </div>
</template>

<script>
export default {
  name: 'clickRightMenu',
  data () {
    return {}
  },
  methods: {
    handleToSee () {
      this.$emit('handleToSee')
    }
  }
}
</script>

<style lang="scss" scoped>
  .contextmenu__item {
    display: block;
    line-height: 34px;
    text-align: center;
  }
  .contextmenu__item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .menu {
    position: absolute;
    background-color: #fff;
    width: 100px;
    font-size: 12px;
    color: #444040;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    white-space: nowrap;
    z-index: 10000;
  }
  .contextmenu__item:hover {
    cursor: pointer;
    color: #409EFF;
  }
</style>
